import {request} from "../http";

export interface Query {
	sampleClassId?: number,
	title: string,
	pageNum: number,
	pageSize: number
}

export interface SampleVO {
	id: number,
	apply: string,
	frontCover: string,
	title:string
}

export interface CarouselVO {
	id: string,
	subject: string,
	url: string
}

export interface PlainUserVO {
	id: string,
	userName: string,
	userInfo: string,
	userImg: string
}

export interface SimpleDeVO {
	id: string,
	carousel: CarouselVO[],
	title: string,
	updateTime: string,
	address: string,
	plainUser: PlainUserVO,
	model: string,
	description: string,
	clothing:string,
	cameraModel:string,
	cameraLens:string,
	aperture:string,
	shutter:string,
	cameraIso:string
}

const baseUrl = "/sample/wx"

export function getSimpleList(query: Query) {
	return request({
		url: `${baseUrl}/condition`,
		method:"POST",
		data: query,
		token: null,
	})
}


export function getSimpleById(id: string) {
	return request({
		url: `${baseUrl}/${id}`,
		method: "GET",
		token: null
	})
}